export interface AnyJson {
  [key: string]: any;
}

export interface SampleBack extends AnyJson {
  code: number;
}

export type Banner={
    targetId:number;
    url:string;
    imageUrl:string
}

export type HotTag={
    id:number;
    name:string;
    position:number;
}
//入驻歌手
export type Singer={
    id:number;
    name:string;
    picUrl:string;
    alias:string[];
    albumSize:number;
}
// 歌手详情
export type SingerDetail = {
  artist: Singer;
  hotSongs: Song[];
}
//歌曲
export type Song={
    id:number;
    name:string;
    url:string;
    ar: Singer[];
    al:{id:number;name:string;picUrl:string;};
    dt:number;
}
//歌曲播放地址
export type SongUrl = {
    id:number;
    url:string;
}

//歌单
export type SongSheet = {
    id:number;
    name:string;
    picUrl:string;
    coverImgUrl:string;
    playCount:number;
    tags: string[];
    createTime: number;
    creator: { nickname: string, avatarUrl: string };
    description: string;
    subscribedCount: number;
    shareCount: number;
    userId: number;
    commentCount: number;
    subscribed: boolean;
    tracks: Song[];
}


// 歌词
export type Lyric = {
  lyric:string;
  tlyric:string;
}

// 歌单列表
export type SheetList = {
  playlists: SongSheet[];
  total: number;
}



//搜索结果
export type SearchResult = {
  artists?: Singer[];
  playlists?: SongSheet[];
  songs?: Song[];
}
